package com.yjh.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CourtInfo {
    @TableId(type = IdType.AUTO)
    private Integer courtId;

    @TableField("category_id") // 外键，关联球场分类表
    private Integer categoryId;

    @TableField("court_name")
    private String courtName;

    @TableField("court_img")
    private String courtImg; // 多个图片URL用逗号分隔

    @TableField("open_time")
    private String openTime;

    @TableField("max_people")
    private Integer maxPeople;

    @TableField("facility")
    private String facility;

    @TableField("is_maintain")
    private Integer isMaintain; // 0=正常，1=维护中

}
